/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2022-12-19 08:53:37
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2022-12-20 14:41:53
 */
import { fileURLToPath, URL } from "node:url";

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), vueJsx()],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
  server: {
    proxy: {
      '/itCenter': {
          target: 'http://10.0.7.50:5003',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/itCenter/, ''),
      },
    }
  }
});
